<?php

class Games extends Phalcon\Mvc\Model
{
    /**
     * @var integer
     */
    public $id;

    /**
     * @var string
     */
    public $status;

    /**
     * @var integer
     */
    public $id_player_turn;

    /**
     * @var string
     */
    public $stack;

    /**
     * @var string
     */
    public $master_card;

    /**
     * @var string
     */
    public $played_cards;

    /**
     * Relationship initialization
     */
    public function initialize()
    {
        $this->belongsTo('id_player_turn', 'Player', 'id', array(
            'reusable' => true
            ));
    }

}
